import { get, post } from '../http';
/**
 *  流转卡调整
 * @returns 
 */
export function adjuct() {
    return {
        //获取 流转卡调整列表
        getFindAdjuct: (params: any) => {
            return post({
                url: '/aps/circulatCard/findCirculatCardAdjust',
                data: params,
            })
        },
        // 获取流程卡调整列表-详细
        getFindAdjuctDetail: (params: any) => {
            return post({
                url: `/dwWorkShop/workshopProcess/findCirculatCardAdjust`,
                data: params
            })
        },
        //流转卡调整列表详情
        getFindAdjuctUpper: (params: any) => {
            return post({
                url: '/aps/circulatCard/findCirculatCardAdjustUpper',
                data: params
            })
        },
        // 流程卡调整重量-查询
        getFindWeight: () => {
            return get({
                url: '/aps/circulatCard/findCirculatCardAdjustOrderWeight/1'
            })
        },

        //流程卡调整重量-修改
        editFindWeight: (params: any) => {
            return post({
                url: '/aps/circulatCard/updateCirculatCardAdjustOrderWeight',
                data: params
            })
        },

        //删除工序
        delProcess: (id: any) => {
            return get({
                url: `/aps/circulatCard/deleteProcess/${id}`
            })
        },

        //新增工序
        addProcess: (params: any) => {
            return post({
                url: '/aps/circulatCard/insertProcess',
                data: params,
            })
        },

        //反退工序
        registerProcess: (params: any) => {
            return post({
                url: '/aps/circulatCard/RetrogressionProcess',
                data: params
            })
        },

        //选择插入工序
        insertProcess: (params: any) => {
            return post({
                url: '/aps/circulatCard/selectInsertProcess',
                data: params
            })
        },


        //排缸终止 / 取消终止
        updateCardStatus: (params: any) => {
            return post({
                url: '/aps/circulatCard/updateCirculatCardStatus',
                data: params
            })
        }
    }
}